<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
<script>
	var json = {
				name: 'albert',
				salary: 25000,
				showName: function()
												{
													alert(this.name);
												},
		  showSalary:	function()
												{
													alert(this.salary);
												}
	};
	//多个对象时， 没有优势， 需要返回到工厂模式
	var json2 = {
				name: 'albert',
				salary: 25000,
				showName: function()
												{
													alert(this.name);
												},
		  showSalary:	function()
												{
													alert(this.salary);
												}
	};
	
json.showName();
json.showSalary();
</script>
</head>

<body>
</body>
</html>
